
package com.sijibao.gather.event;

import java.io.Serializable;

public class LogonEvent extends Event implements Serializable
{
	private static final long serialVersionUID = -7982148651848042866L;
	
	public LogonEvent( String userMobile, String userCode,
			long logonTime, double longitude, double latitude,
			int clientVersion, String mobileModel, String deviceCode)
	{
		super(LogonEvent.class.getName());
		this.userMobile = userMobile;
		this.userCode = userCode;
		this.logonTime = logonTime;
		this.longitude = longitude;
		this.latitude = latitude;
		this.clientVersion = clientVersion;
		this.mobileModel = mobileModel;
		this.deviceCode = deviceCode;
	}
	/**
	 * 手机号
	 */
	private String userMobile;
	/**
	 * 用户code
	 */
	private String userCode;
	/**
	 * 登录时间
	 */
	private long logonTime;
	/**
	 * 定位经度
	 */
	private double longitude;
	/**
	 * 定位纬度
	 */
	private double latitude;
	/**
	 * 客户端版本号
	 */
	private int clientVersion;
	/**
	 * 手机型号如：小米
	 */
	private String mobileModel;
	/**
	 * 设备号
	 */
	private String deviceCode;

	public String getUserMobile()
	{
		return userMobile;
	}

	public void setUserMobile(String userMobile)
	{
		this.userMobile = userMobile;
	}

	public String getUserCode()
	{
		return userCode;
	}

	public void setUserCode(String userCode)
	{
		this.userCode = userCode;
	}

	public long getLogonTime()
	{
		return logonTime;
	}

	public void setLogonTime(long logonTime)
	{
		this.logonTime = logonTime;
	}

	public double getLongitude()
	{
		return longitude;
	}

	public void setLongitude(double longitude)
	{
		this.longitude = longitude;
	}

	public double getLatitude()
	{
		return latitude;
	}

	public void setLatitude(double latitude)
	{
		this.latitude = latitude;
	}

	public int getClientVersion()
	{
		return clientVersion;
	}

	public void setClientVersion(int clientVersion)
	{
		this.clientVersion = clientVersion;
	}

	public String getMobileModel()
	{
		return mobileModel;
	}

	public void setMobileModel(String mobileModel)
	{
		this.mobileModel = mobileModel;
	}

	public String getDeviceCode()
	{
		return deviceCode;
	}

	public void setDeviceCode(String deviceCode)
	{
		this.deviceCode = deviceCode;
	}

	@Override
	public String toString()
	{
		return "LogonEvent [userMobile=" + userMobile + ", userCode=" + userCode
				+ ", logonTime=" + logonTime + ", longitude=" + longitude
				+ ", latitude=" + latitude + ", clientVersion=" + clientVersion
				+ ", mobileModel=" + mobileModel + ", deviceCode=" + deviceCode
				+ "]";
	}

}
